package com.homework.ch07.zoo;

public class Cat extends Animal{
    private String color;
    public Cat(String name, String color) {
        super(name);
        this.color = color;
    }

    @Override
    public void makeSound() {
        System.out.println("猫发出喵喵叫声");
    }

    @Override
    public void move() {
        System.out.println("猫在四腿爬行");
    }

    public String getColor() {
        return color;
    }
}
